<!-- 测试一些使用方法等-->
<template>
  <div>
    <el-input v-model="props.input1" @input="updateInput1"></el-input>
    <el-input v-model="props.input2" @input="updateInput2"></el-input>
  </div>
</template>

<script setup>
let props = defineProps({
  input1: {
    type: String,
    default: '',
  },
  input2: {
    type: String,
    default: '',
  },
});
console.log(props.input1);
const emit = defineEmits(['update:input1', 'update:input2']);
const updateInput1 = (value) => {
  emit('update:input1', value);
};

const updateInput2 = () => {
  emit('update:input2', 2344);
};
</script>

<style lang="scss" scoped></style>
